<template>
  <div class="page">
    <h3>CRC校验和:</h3>
    <Button type="primary" @click="calcVerify">计算校验和</Button>
    {{checkSum}}
    <div>
      <Input v-model="dataStr" type="textarea" :autosize="{minRows: 2,maxRows: 10}" clearable placeholder="Enter something..." />
    </div>
  </div>
</template>

<script type="text/ecmascript-6">
import { dataTools } from "../utils/dataTools.js";
export default {
  data() {
    return {
      dataStr: "01 02",
      checkSum: ""
    };
  },
  methods: {
    calcVerify() {
      this.checkSum = dataTools.getVerify(this.dataStr);
    }
  }
  // reversedMessage

  // components: {}
};
</script>

<style scoped >
</style>
